<template>
  <div id="page2">
    这是page2
  </div>
</template>

<script>
  //引入实例
  import VueEvent from '../../model/vueEvent.js'
  export default{
    data() {
      return {
        msg: "This is page2 msg"
      }
    },
    methods: {
      name() {

      }
    },
    beforeCreate() {
      console.info("before create")
    },
    mounted() {
      //接收数据
      VueEvent.$on("sendP1-key",function(data){
        console.info("收到page1 发送的数据 : " + data);
      })
    }
  }
</script>
